package o;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public final class ekr {
    public static final Integer ˋ = Integer.valueOf(1);
    public static final Integer ˎ = Integer.valueOf(0);
    private static Map<ekp, Integer> ˏ = new HashMap();

    static {
        ˊ();
    }

    private static void ˊ() {
        ˏ.put(ekp.MINE_GAME, ˎ);
        ˏ.put(ekp.MINE_AWARD, ˎ);
        ˏ.put(ekp.COUPON_TICKET, ˎ);
        ˏ.put(ekp.CHECK_UPDATE, ˎ);
        ˏ.put(ekp.MINE_WISH, ˎ);
    }

    public static void ॱ(ekp o_ekp, Integer num) {
        Logger.ˎ("PersonalRedDotManager", "updateRedPointStatus  type:" + o_ekp + ",status:" + num);
        if (ˏ.containsKey(o_ekp)) {
            ˏ.put(o_ekp, num);
            ˋ();
        }
    }

    private static void ˋ() {
        boolean z;
        for (Entry entry : ˏ.entrySet()) {
            if (((Integer) entry.getValue()).intValue() > ˎ.intValue()) {
                Logger.ˎ("PersonalRedDotManager", "need show red point:" + entry.getKey());
                z = true;
                break;
            }
        }
        z = false;
        Logger.ˎ("PersonalRedDotManager", "send personal ShowRedPointBroadcast :" + z);
        dji.ˊ(dji.ˎ(), z);
    }

    public static int ˋ(ekp o_ekp) {
        return ((Integer) ˏ.get(o_ekp)).intValue();
    }

    public static void ˎ() {
        ˊ();
    }
}
